package com.test.acceltest;

import java.util.ArrayList;

public class Gesture {
	ArrayList<Float> x, y, z;
	
	public Gesture()
	{
		x = new ArrayList<Float>();
		y = new ArrayList<Float>();
		z = new ArrayList<Float>();
	}
	
	public void add(float[] vals)
	{
		x.add(vals[0]);
		y.add(vals[1]);
		z.add(vals[2]);
	}
	
	public int length()
	{
		return x.size();
	}
	
	public String toString()
	{
		String res = "";
		for (int i = 0; i < x.size(); i++)
			res += "test.add(new AccelVector(" + x.get(i) + "f, " + y.get(i) + "f, " + z.get(i) + "f));";

		return res;
	}
}
